//
//  IFToolBarViewController.h
//  IfengNews
//
//  Created by Ryan on 14-9-19.
//
//

#import <UIKit/UIKit.h>
#define ShareButtonTopGap 18
#define ShareButtonLeftGap 27
#define ShareButtonGap 34
#define ShareButtonH_W 41
#define ShareLableLeftGap 18
#define ShareLableH_W 60
#define ShareLableGap 15

typedef enum{
    IFActive_ButtomToolBarButtonTypeShare         = 1 << 0,
    IFActive_ButtomToolBarButtonTypeCollect       = 1 << 1,
    IFActive_ButtomToolBarButtonTypeWriteComment  = 1 << 2,
    IFActive_ButtomToolBarButtonTypeShowComment   = 1 << 3,
    IFActive_ButtomToolBarButtonTypeShowMore      = 1 << 4,
    IFActive_ButtomToolBarButtonTypeFont          = 1 << 5,
    IFActive_ButtomToolBarButtonTypeDownloadImg   = 1 << 6
}IFActive_ButtomToolBarButtonType;
@interface IFToolBarViewController : UIViewController <UIScrollViewDelegate>

@property (nonatomic,strong)UIView *markView;
@property (nonatomic,strong)NSString *toolCollectSource;
@property (nonatomic,unsafe_unretained)BOOL isSlider;
@property (nonatomic,strong) NSString *collectId;;

@property (nonatomic,strong)UIButton *backButton;
@property (nonatomic,strong)UIButton *moreButton;
@property (nonatomic,strong)UIButton *shareButton;
@property (nonatomic,strong)UIButton *download;

- (void)addButton:(IFActive_ButtomToolBarButtonType)buttonType;

- (void)update:(int)commentCount;


- (void)handleTap:(IFActive_ButtomToolBarButtonType )type block:(void(^)(id sender))block;


- (void)activeFontSize:(int)tag;

- (void)addListnerMore:(void(^)(BOOL isshow))block;

- (void)addListnerFont:(void(^)(int index))block;

- (void)setCollocId:(NSString *)collocId andData:(NSDictionary *)data pty:(NSString *)pty;

- (void)showFontPannel:(int)setting withIsYinpin:(BOOL)isYinpin;

@end
